#include "textedit.h"

TextEdit::TextEdit(QWidget *parent) :
    QTextEdit(parent)
{
    connect(this,SIGNAL(textChanged()),this,SLOT(onChangeText()));
}

void TextEdit::onChangeText()
{
    emit textChanged(document()->toPlainText());
}
